package com.longbo.leaf.portal.service.impl;

import com.longbo.leaf.portal.model.Syslog;
import com.longbo.leaf.portal.mapper.SyslogMapper;
import com.longbo.leaf.portal.service.ISyslogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 操作日志表 服务实现类
 * </p>
 *
 * @author longbo
 * @since 2021-02-01
 */
@Service
public class SyslogServiceImpl extends ServiceImpl<SyslogMapper, Syslog> implements ISyslogService {

    @Autowired
    private SyslogMapper syslogMapper;

    @Override
    public int saveSysLog(Syslog syslog) {
     return syslogMapper.insert(syslog);
    }
}
